<extend name="Base/common"/>

<block name="style">
    <link href="__CSS__/production.css" rel="stylesheet" type="text/css"/>
</block>

<block name="body">
    <div class="col-md-12">
        <!--轮播图片-->

        {:hook('Advs', 'production_index_index')}
        <!--/轮播图片-->
    </div>
        <div class="production">
            <div class="col-md-12">
                <div class="common_block_border clearfix" style="padding-bottom: 40px;">
                    <div class="col-md-12 pad_0 clearfix" style="border-bottom: 1px solid #CACACA;">
                        <ul class="production_left col-md-7 col-xs-12 pad_0 mb_0">
                            <li><a href="{:U('production/index/index')}" class="production_current">制片帮忙</a></li>
                            <li><a href="{:U('production/index/member')}">制片大神</a></li>
                        </ul>
                        <ul class="production_right col-md-5 col-xs-12 pad_0 mb_0">
                            <li><a href="#add-to-production-info" class="production_current change add-to-production">加入制片</a></li>
                        </ul>
                    </div>
                    <div class="col-md-12" style="padding-left: 10px;padding-right: 10px;">
                        <ul class="production_list">
                            <if condition="count($productionList) eq 0"><p class="text-muted"
                                                                           style="text-align: center; font-size: 3em;">
                                <br><br>
                                还没有制片帮忙～
                                <br><br><br>
                            </p></if>
                            <volist name="productionList" id="vl">
                                <li class="col-md-3 col-sm-4 col-xs-12">
                                    <dl>
                                        <dt>
                                            <a class="zuopin_img" href="{:U('help/index/detail',array('id'=>$vl['id']))}" target="_blank"><img src="{:getThumbImageById($vl['cover_id'],259,259)}" style="width: 100%"
                                                                                                                     class="img-responsive"/>
                                                <div class="zuopin_title_cav"></div>
                                                <div class="zuopin_title" style="display:table; "><div class="vertical_middle" style="height: 0">{$vl.title}</div></div>


                                            </a>

                                        </dt>
                                        <dd style="font-size: 12px;">
                                            <div style="font-size: 16px;"><a href="{$vl.help.user.space_url}" ucard="{$vl.uid}" target="_blank">{$vl.user.nickname}</a></div>
                                            <div>
                                                好评率<span>  {$vl.rate|default=0}%</span>&nbsp;&nbsp;
                                                <span class="pull-right">已报名<span>  {$vl.sign_count|default=0}</span>&nbsp;&nbsp;
                                                {$vl.state|get_help_condition}</span>
                                            </div>
                                        </dd>
                                    </dl>
                                </li>
                            </volist>
                        </ul>
                    </div>
                    <div style="width: 100%;text-align: center;">
                        {:getPagination($totalCount,50)}
                    </div>
                </div>
            </div>
    </div>
    <include file="_addto"/>
</block>
<block name="script">
    <script type="text/javascript" src="__JS__/production.js"></script>
</block>